<template>
  <view class="search-box">
    <input type="text" class="search-input" placeholder="搜索你想要的内容" disabled @click="handelClick">
  </view>
</template>

<script setup lang="ts">
  const emit = defineEmits(['toSearch'])
  const handelClick = ()=>{
    emit('toSearch')
  }
</script>

<style lang="scss" scoped="">
  .search-box{
    position: absolute;
    left: 0;
    top: 44rpx;
    z-index: 9999;
    width: 100%;
    .search-input{
      background-color: #f8f8f8;
      height: 70rpx;
      line-height: 40rpx;
      text-align: center;
      border-radius: 30rpx;
      margin: 0 20rpx;
    }
  }
</style>